diff options
| author | zephex-alt <[email protected]> | 2024-04-30 04:08:49 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-30 04:08:49 +0000 |
| commit | b9059d978d2b86e15aa7c3846ef71fc62f711486 (patch) | |
| tree | 0833f1e05968f8f42ad2e736605af734e6bab30d /src/app/manga/[title]/[id]/buttons.jsx | |
| parent | late night fuckery (diff) | |
| download | dramalama-b9059d978d2b86e15aa7c3846ef71fc62f711486.tar.xz dramalama-b9059d978d2b86e15aa7c3846ef71fc62f711486.zip | |
small fixes
Diffstat (limited to 'src/app/manga/[title]/[id]/buttons.jsx')
| -rw-r--r-- | src/app/manga/[title]/[id]/buttons.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/manga/[title]/[id]/buttons.jsx b/src/app/manga/[title]/[id]/buttons.jsx index a6c8d75..6c419bf 100644 --- a/src/app/manga/[title]/[id]/buttons.jsx +++ b/src/app/manga/[title]/[id]/buttons.jsx @@ -5,6 +5,7 @@ import Link from "next/link"; import { storeLocal } from "../../history/storeData";
export default function Buttons({ content: data }) {
+ let hasValidLinks = false;
function store_to_local(title, chapter, volume, image, id, id2) {
let data = {
title: title,
@@ -22,6 +23,7 @@ export default function Buttons({ content: data }) { {data.chapters &&
data.chapters.map((item, index) => {
if (item.pages !== 0) {
+ hasValidLinks = true;
return (
<Link
key={index}
@@ -49,6 +51,9 @@ export default function Buttons({ content: data }) { );
}
})}
+ {!hasValidLinks && (
+ <p className={styles.linksNotFound}>Links not found</p>
+ )}
</div>
);
}
|